
	var _queryCategory="/search/";
	/**
	 * 创建分类
	 */
	function createLeftCategory(){
			var html="";
    		for(var i=0;i<category.length;i++){
    			html+="<div class='item ";
				if(i==0){
					html+="fore";
				}
				html+=" '>";
				html+="<span><h3><a href='"+_queryCategory+category[i].id+"ok.htm'>"+category[i].name+"</a></h3><s>  </s></span>"+
							"<div class='i-mc'>"+
							"<div class='close' onclick=\"$(this).parent().parent().removeClass('hover')\"></div>"+
							"<div class='subitem'>";
				
				html+=createSub2Category(category[i].list);
    			html+="</div></div></div>";
    		}
    		$("#rightCategory").html(html);
		}
		/**
		 * 获取2级分类
		 * @param category
		 * @returns {String}
		 */
		function createSub2Category(category){
			if(category==null){
				return "";
			}
			var html="";
			for(var i=0;i<category.length;i++){
				html+="<dl ";
				if(i==0){
					html+="class='fore'";
				}
				html+="><dt>"+category[i].name+"</dt><dd>";
				html+=createSub3Category(category[i].list);
				html+="</dd></dl>";
			}
			return html;
		}
		/**
		 * 获取3级子类别
		 */
		function createSub3Category(category){
			if(category==null){
				return "";
			}
			var html="";
			for(var i=0;i<category.length;i++){
				html+="<em><a href='"+_queryCategory+category[i].id+"ok.htm'>"+category[i].name+"</a></em>";
			}
			return html;
		}
		
		/**
		* 地址栏字符转义
		*/
		function translateUrl(orgStr){
			return orgStr.replace("#","*");
		}
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		